Replication materials for "The Vibes are Off: Did Elon Musk Push Academics off Twitter?".
Author: 	James Bisbee (james.h.bisbee@vanderbilt.edu)
		Kevin Munger
		
This zipped folder is designed to reproduce all figures and tables from the manuscript and supporting information.

It contains the following directories:
	- ~/: main folder containing README.txt and .R scripts
		- data/: folder containing all data
		- output/: folder containing output
			- Figures/: folder containing PDFs of all figure found in the manuscript
			- Tables/: folder containing .tex files of all tables found in the manuscript

The folder is designed to reproduce all output with minimal intervention by the replicator.

Note that the raw data is not included in the replication materials to protect the privacy of the users that we study. To request access to the restricted data, please contact the authors.

All contents are described in detail below. 

- ~/:
	- MUSK_figure_1.R: 
		########################################################################
		##
		##  Purpose: This script produces Figure 1 from the manuscript
		##  Author: james.h.bisbee@vanderbilt.edu
		##  Date: 05/18/2024
		##
		##  Input Files:
		##    - ./data/for_replication.rds
		##  Output Files:
		##    - ./output/Figures/MUSK_fig1.pdf
		##
		##	Compute environment (5/18/2024)
		# sysname        release        version       nodename 
		# "Windows"       "10 x64"  "build 22631"   "AS-GR3RGY3" 
		# machine          login           user effective_user 
		# "x86-64"     "bisbeejh"     "bisbeejh"     "bisbeejh"
		# $ram
		# [1] "17179869184"
		# 
		# $vendor_id
		# [1] "GenuineIntel"
		# 
		# $model_name
		# [1] "13th Gen Intel(R) Core(TM) i9-13900H"
		# 
		# $no_of_cores
		# [1] 20
		##
		##	Package Information
		# attached base packages:
		# [1] stats     graphics  grDevices utils     datasets 
		# [6] methods   base     
		# 
		# other attached packages:
		#  [1] patchwork_1.1.3   ggridges_0.5.4    lubridate_1.9.2  
		#  [4] forcats_1.0.0     stringr_1.5.0     dplyr_1.1.2      
		#  [7] purrr_1.0.1       readr_2.1.4       tidyr_1.3.0      
		# [10] tibble_3.2.1      ggplot2_3.4.4     tidyverse_2.0.0  
		# [13] changepoint_2.2.4 zoo_1.8-12       
		# 
		# loaded via a namespace (and not attached):
		#  [1] vctrs_0.6.3       cli_3.6.1         rlang_1.1.1      
		#  [4] stringi_1.7.12    generics_0.1.3    glue_1.6.2       
		#  [7] colorspace_2.1-0  hms_1.1.3         scales_1.3.0     
		# [10] fansi_1.0.4       grid_4.3.3        munsell_0.5.0    
		# [13] tzdb_0.4.0        lifecycle_1.0.3   compiler_4.3.3   
		# [16] timechange_0.2.0  pkgconfig_2.0.3   rstudioapi_0.15.0
		# [19] lattice_0.22-5    R6_2.5.1          tidyselect_1.2.0 
		# [22] utf8_1.2.3        pillar_1.9.0      magrittr_2.0.3   
		# [25] tools_4.3.3       withr_2.5.0       gtable_0.3.3
		########################################################################
	- MUSK_figure_2.R:
		########################################################################
		##
		##  Purpose: This script produces Figure 2 from the manuscript
		##  Author: james.h.bisbee@vanderbilt.edu
		##  Date: 05/18/2024
		##
		##  Input Files:
		##    - ./data/for_replication.rds
		##  Output Files:
		##    - ./output/Figures/MUSK_fig2.pdf
		##
		##	Compute environment (5/18/2024)
		# sysname        release        version       nodename 
		# "Windows"       "10 x64"  "build 22631"   "AS-GR3RGY3" 
		# machine          login           user effective_user 
		# "x86-64"     "bisbeejh"     "bisbeejh"     "bisbeejh"
		# $ram
		# [1] "17179869184"
		# 
		# $vendor_id
		# [1] "GenuineIntel"
		# 
		# $model_name
		# [1] "13th Gen Intel(R) Core(TM) i9-13900H"
		# 
		# $no_of_cores
		# [1] 20
		##
		##	Package Information
		# attached base packages:
		# [1] stats     graphics  grDevices utils     datasets 
		# [6] methods   base     
		# 
		# other attached packages:
		#  [1] changepoint_2.2.4 zoo_1.8-12        ggridges_0.5.4   
		#  [4] lubridate_1.9.2   forcats_1.0.0     stringr_1.5.0    
		#  [7] dplyr_1.1.2       purrr_1.0.1       readr_2.1.4      
		# [10] tidyr_1.3.0       tibble_3.2.1      ggplot2_3.4.4    
		# [13] tidyverse_2.0.0  
		# 
		# loaded via a namespace (and not attached):
		#  [1] vctrs_0.6.3       cli_3.6.1         rlang_1.1.1      
		#  [4] stringi_1.7.12    generics_0.1.3    glue_1.6.2       
		#  [7] colorspace_2.1-0  hms_1.1.3         scales_1.3.0     
		# [10] fansi_1.0.4       grid_4.3.3        munsell_0.5.0    
		# [13] tzdb_0.4.0        lifecycle_1.0.3   compiler_4.3.3   
		# [16] timechange_0.2.0  pkgconfig_2.0.3   rstudioapi_0.15.0
		# [19] lattice_0.22-5    R6_2.5.1          tidyselect_1.2.0 
		# [22] utf8_1.2.3        pillar_1.9.0      magrittr_2.0.3   
		# [25] tools_4.3.3       withr_2.5.0       gtable_0.3.3 
		########################################################################
	- MUSK_figure_3.R: 
		########################################################################
		##
		##  Purpose: This script produces Figure 3 from the manuscript
		##  Author: james.h.bisbee@vanderbilt.edu
		##  Date: 05/18/2024
		##
		##  Input Files:
		##    - ./data/for_replication.rds
		##  Output Files:
		##    - ./output/Figures/MUSK_fig3.pdf
		##
		##	Compute environment (5/18/2024)
		# sysname        release        version       nodename 
		# "Windows"       "10 x64"  "build 22631"   "AS-GR3RGY3" 
		# machine          login           user effective_user 
		# "x86-64"     "bisbeejh"     "bisbeejh"     "bisbeejh"
		# $ram
		# [1] "17179869184"
		# 
		# $vendor_id
		# [1] "GenuineIntel"
		# 
		# $model_name
		# [1] "13th Gen Intel(R) Core(TM) i9-13900H"
		# 
		# $no_of_cores
		# [1] 20
		##
		##	Package Information
		# attached base packages:
		# [1] stats     graphics  grDevices utils     datasets 
		# [6] methods   base     
		# 
		# other attached packages:
		#  [1] ggridges_0.5.4    lubridate_1.9.2   forcats_1.0.0    
		#  [4] stringr_1.5.0     dplyr_1.1.2       purrr_1.0.1      
		#  [7] readr_2.1.4       tidyr_1.3.0       tibble_3.2.1     
		# [10] ggplot2_3.4.4     tidyverse_2.0.0   changepoint_2.2.4
		# [13] zoo_1.8-12       
		# 
		# loaded via a namespace (and not attached):
		#  [1] vctrs_0.6.3       cli_3.6.1         rlang_1.1.1      
		#  [4] stringi_1.7.12    generics_0.1.3    glue_1.6.2       
		#  [7] colorspace_2.1-0  hms_1.1.3         scales_1.3.0     
		# [10] fansi_1.0.4       grid_4.3.3        munsell_0.5.0    
		# [13] tzdb_0.4.0        lifecycle_1.0.3   compiler_4.3.3   
		# [16] timechange_0.2.0  pkgconfig_2.0.3   rstudioapi_0.15.0
		# [19] lattice_0.22-5    R6_2.5.1          tidyselect_1.2.0 
		# [22] utf8_1.2.3        pillar_1.9.0      magrittr_2.0.3   
		# [25] tools_4.3.3       withr_2.5.0       gtable_0.3.3
		########################################################################
	- MUSK_table_1.R: 
		########################################################################
		##
		##  Purpose: This script produces Table 1 from the manuscript
		##  Author: james.h.bisbee@vanderbilt.edu
		##  Date: 05/18/2024
		##
		##  Input Files:
		##    - ./data/for_replication.rds
		##  Output Files:
		##    - ./output/Tables/tab_1.tex
		##
		##	Compute environment (5/18/2024)
		# sysname        release        version       nodename 
		# "Windows"       "10 x64"  "build 22631"   "AS-GR3RGY3" 
		# machine          login           user effective_user 
		# "x86-64"     "bisbeejh"     "bisbeejh"     "bisbeejh"
		# $ram
		# [1] "17179869184"
		# 
		# $vendor_id
		# [1] "GenuineIntel"
		# 
		# $model_name
		# [1] "13th Gen Intel(R) Core(TM) i9-13900H"
		# 
		# $no_of_cores
		# [1] 20
		##
		##	Package Information
		# attached base packages:
		# [1] stats     graphics  grDevices utils     datasets 
		# [6] methods   base     
		# 
		# other attached packages:
		#  [1] fixest_0.11.1     ggridges_0.5.4    lubridate_1.9.2  
		#  [4] forcats_1.0.0     stringr_1.5.0     dplyr_1.1.2      
		#  [7] purrr_1.0.1       readr_2.1.4       tidyr_1.3.0      
		# [10] tibble_3.2.1      ggplot2_3.4.4     tidyverse_2.0.0  
		# [13] changepoint_2.2.4 zoo_1.8-12       
		# 
		# loaded via a namespace (and not attached):
		#  [1] gtable_0.3.3        compiler_4.3.3     
		#  [3] Rcpp_1.0.11         tidyselect_1.2.0   
		#  [5] scales_1.3.0        lattice_0.22-5     
		#  [7] R6_2.5.1            generics_0.1.3     
		#  [9] Formula_1.2-5       munsell_0.5.0      
		# [11] pillar_1.9.0        tzdb_0.4.0         
		# [13] rlang_1.1.1         utf8_1.2.3         
		# [15] stringi_1.7.12      timechange_0.2.0   
		# [17] cli_3.6.1           withr_2.5.0        
		# [19] magrittr_2.0.3      grid_4.3.3         
		# [21] rstudioapi_0.15.0   hms_1.1.3          
		# [23] sandwich_3.0-2      nlme_3.1-164       
		# [25] lifecycle_1.0.3     vctrs_0.6.3        
		# [27] glue_1.6.2          numDeriv_2016.8-1.1
		# [29] fansi_1.0.4         colorspace_2.1-0   
		# [31] dreamerr_1.2.3      tools_4.3.3        
		# [33] pkgconfig_2.0.3    
		########################################################################
	- data/: 
		- for_replication.rds: This is the anonymized and cleaned dataset used for analysis. Replication scripts and raw data are not included in this file to safeguard the privacy of the analyzed Twitter accounts. Please contact the authors for access to the raw data.
	- output/:
		- Figures/:
			- MUSK_fig1.pdf: Figure 1 from the manuscript.
			- MUSK_fig2.pdf: Figure 2 from the manuscript.
			- MUSK_fig3.pdf: Figure 3 from the manuscript.
		- Tables/:
			- tab_1.tex: Table 1 from the manuscript.